package com.wh.hotel.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 定价策略表
 * </p>
 *
 * @author 
 * @since 2023-05-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hotel_pricing_strategy")
public class HotelPricingStrategy extends Model<HotelPricingStrategy> {

    private static final long serialVersionUID=1L;

    /**
     * 定价策略ID
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    private Date createDt;

    /**
     * 更新时间
     */
    private Date updateDt;

    /**
     * 策略名称
     */
    private String strategyName;

    /**
     * 策略类型,0=基准价策略
     */
    private Integer strategyType;

    /**
     * 适用范围json
     */
    private String suitRangeJson;

    /**
     * 生效时间规则
     */
    private String validTimeJson;

    /**
     * 变价json
     */
    private String changePriceJson;

    /**
     * 策略状态，0=正常，1=已下架
     */
    private Integer strategyStatus;


    public static final String ID = "id";

    public static final String CREATE_DT = "create_dt";

    public static final String UPDATE_DT = "update_dt";

    public static final String STRATEGY_NAME = "strategy_name";

    public static final String STRATEGY_TYPE = "strategy_type";

    public static final String SUIT_RANGE_JSON = "suit_range_json";

    public static final String VALID_TIME_JSON = "valid_time_json";

    public static final String CHANGE_PRICE_JSON = "change_price_json";

    public static final String STRATEGY_STATUS = "strategy_status";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
